package cn.zzp.org.mapper;

import cn.zzp.basic.mapper.BaseMapper;
import cn.zzp.org.domain.Shop;
import cn.zzp.org.domain.ShopDto;

import java.util.List;

/**
 * @ClassName ShopMapper
 * @Description
 * @Author 祝志鹏
 * @Date 2022/7/14 13:19
 */
public interface ShopMapper extends BaseMapper<Shop> {

    /**
     * 根据店铺名称和地址查询店铺【判断是否已经被注册过】
     * @param shop
     * @return
     */
    Shop queryByMessage(Shop shop);

    void patchAdd(List<Shop> shops);

    List<ShopDto> getCountByState();

}
